//
//  Config.h
//  Cunli
//
//  Created by lilubin on 15/6/9.
//  Copyright (c) 2015年 lilubin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

#define LEFTSIDEWIDTH ([UIScreen mainScreen].bounds.size.width*2.0/3 - 15.0)
#define kkWindow [UIApplication sharedApplication].keyWindow

@class BaseUser;
@class DetailUser;

@interface Config : NSObject

+ (NSString *)getOwnUsername;
+ (NSString *)getOwnUserID;
+ (NSString *)getOwnSession;
+ (NSString *)getOwnAreaids;
//+ (NSString *)getMobileNum;
+ (NSString *)getPortraitURL;
+ (NSString *)getUserTruename;
+ (NSString *)getUserPwd;
+ (NSString *)getVillageName;
+ (NSString *)getLogintimes;
+ (NSString *)getGroupID;
+ (NSDictionary *)getInviteDic;
+ (NSDictionary *)getUserInfoDic;

+ (BOOL)isAutoLogin;
+ (void)removeAutoLogin;

+ (void)saveUserName:(NSString *)userName;
+ (void)saveUserID:(NSString *)userID;
+ (void)saveSession:(NSString *)session;
+ (void)saveAreaids:(NSString *)areaids;
+ (void)saveAutoLogin:(BOOL)isAutoLogin;
//+ (void)saveUserMobileNum:(NSString *)mobileNum;
+ (void)saveUserPortraitURL:(NSString *)portraitStr;
+ (void)saveUserTruename:(NSString *)truename;
+ (void)saveUserPwd:(NSString *)userPwd;
+ (void)saveVillageName:(NSString *)village;
+ (void)saveLogintimes:(NSString *)times;
+ (void)saveGroupID:(NSString *)groupID;
+ (void)saveInviteDic:(NSDictionary *)inviteDic;
+ (void)saveUserInfoDic:(NSDictionary *)userInfo;


+ (void)removeLogin;

+ (MBProgressHUD *)createHUD; //创建hud
+ (void)showHUDWithText:(NSString *)str andImage:(NSString *)imgStr; //显示hud

+(BOOL)isShield;//判断是否被屏蔽发言

@end
